package com.open.capacity.reimburse.dao;

import com.open.capacity.reimburse.dto.ProjectBudgetDto;
import com.open.capacity.reimburse.entity.PbdBudgetAdjust1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 预算分配表
 *
 * @author
 * @email
 * @date 2021-06-29 10:26:52
 */
@Mapper
public interface PbdBudgetAdjust1Dao {

    int save(PbdBudgetAdjust1 pbdBudgetAdjust1);

    int update(PbdBudgetAdjust1 pbdBudgetAdjust1);

    int deleteByProjectId(@Param("year") Integer year, @Param("projectId") String projectId);

    int delete(String id);

    PbdBudgetAdjust1 findById(String id);

    List<PbdBudgetAdjust1> findByProjectId(@Param("year") Integer year, @Param("projectId") String projectId);

    List<ProjectBudgetDto> findChart(Integer year);

    List<PbdBudgetAdjust1> findAll(Map<String, Object> params);

}
